﻿namespace NiuX.AspNetCore.Middlewares;

public static class MiddlewareExtensions
{
    public static IApplicationBuilder UseNiuXExceptionaHndlerMiddleware(this IApplicationBuilder app, params object?[] args)
    {
        return app.UseMiddleware<ExceptionHandlerMiddleware>();
    }
}